import { router } from './Router';
import './views/js/components/index';
import './views/js/directives/index'
import JsonExcel from "vue-json-excel";
import * as THREE from "three";
import { language } from './util/Language';

Vue.use(VueRouter);
window.THREE = THREE;

Vue.prototype.$t = function (msgPath) {
  return language.getMessage(msgPath);
};

let app = new Vue({
  el: '#app',
  router,
});

if (DEVENV) {
  window.app = app;
}

Vue.component('downloadExcel', JsonExcel)

// window.url= `${window.location.protocol}//${window.location.hostname}:8080`
window.url = "http://172.22.50.22:8080"